import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getUser = {
  getUserList(params) {
    return axios.post(`${base.bd}/admin/user/lists`, qs.stringify(params));
  },
  userlock(params) {
    return axios.post(
      `${base.bd}/admin/user/change_show`,
      qs.stringify(params)
    );
  },
  userDel(params) {
    return axios.post(`${base.bd}/admin/user/del`, qs.stringify(params));
  },
  getInfo(params) {
    return axios.post(`${base.bd}/admin/user/info`, qs.stringify(params));
  },
  collectionsEdit(params) {
    return axios.post(
      `${base.bd}/admin/user_attach/collections_edit`,
      qs.stringify(params)
    );
  },
  collectionsSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/user_attach/collections_saveedit`,
      qs.stringify(params)
    );
  },
  userEdit(params) {
    return axios.post(`${base.bd}/admin/user/edit`, qs.stringify(params));
  },
  userSaveEdit(params) {
    return axios.post(`${base.bd}/admin/user/saveedit`, qs.stringify(params));
  },
  getRatingOption(params) {
    return axios.post(`${base.bd}/admin/rating/option`, qs.stringify(params));
  },
  getRatingList(params) {
    return axios.post(`${base.bd}/admin/rating/lists`, qs.stringify(params));
  },
  userRatingEdit(params) {
    return axios.post(
      `${base.bd}/admin/user/rating_edit`,
      qs.stringify(params)
    );
  },
  userRatingSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/user/rating_saveedit`,
      qs.stringify(params)
    );
  },
  getRechargeOption(params) {
    return axios.post(
      `${base.bd}/admin/recharge/recharge_option`,
      qs.stringify(params)
    );
  },
  userRechargeSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/recharge/recharge_saveedit`,
      qs.stringify(params)
    );
  },
  userchangetid(params) {
    return axios.post(`${base.bd}/admin/user/change_tid`, qs.stringify(params));
  },
  userLetter(params) {
    return axios.post(
      `${base.bd}/admin/user/send_letter`,
      qs.stringify(params)
    );
  },
  userResetPassword(params) {
    return axios.post(
      `${base.bd}/admin/user/reset_password`,
      qs.stringify(params)
    );
  },
  userResetPayPassword(params) {
    return axios.post(
      `${base.bd}/admin/user/reset_pay_password`,
      qs.stringify(params)
    );
  },
  userResetEwm(params) {
    return axios.post(`${base.bd}/admin/user/reset_ewm`, qs.stringify(params));
  },
  userResetWxEwm(params) {
    return axios.post(
      `${base.bd}/admin/user/reset_wx_ewm`,
      qs.stringify(params)
    );
  },
  userResetWyEwm(params) {
    return axios.post(
      `${base.bd}/admin/user/reset_wy_ewm`,
      qs.stringify(params)
    );
  },

  userSupplier(params) {
    return axios.post(
      `${base.bd}/admin/user/supplier_edit`,
      qs.stringify(params)
    );
  },
  userSupplierList(params) {
    return axios.post(
      `${base.bd}/admin/user/supplier_lists`,
      qs.stringify(params)
    );
  },
  editSupplier(params) {
    return axios.post(`${base.bd}/admin/supplier/edit`, qs.stringify(params));
  },
  getSupplierInfoEdit(params) {
    return axios.post(`${base.bd}/admin/shop/edit`, qs.stringify(params));
  },
  saveeditSupplier(params) {
    return axios.post(`${base.bd}/admin/shop/saveedit`, qs.stringify(params));
  },

  getMailDetail(params) {
    return axios.post(`${base.bd}/admin/mail/edit`, qs.stringify(params));
  },
  MailSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/mail/saveedit_by_sid`,
      qs.stringify(params)
    );
  },
  getMailArea(params) {
    return axios.post(`${base.bd}/admin/mail_area/lists`, qs.stringify(params));
  },
  addMailArea(params) {
    return axios.post(
      `${base.bd}/admin/mail_area/saveadd`,
      qs.stringify(params)
    );
  },
  editMailArea(params) {
    return axios.post(
      `${base.bd}/admin/mail_area/saveedit`,
      qs.stringify(params)
    );
  },
  delMailArea(params) {
    return axios.post(`${base.bd}/admin/mail_area/del`, qs.stringify(params));
  },

  getExtractList(params) {
    return axios.post(`${base.bd}/admin/extract/lists`, qs.stringify(params));
  },
  extractEdit(params) {
    return axios.post(`${base.bd}/admin/extract/edit`, qs.stringify(params));
  },
  extractSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/extract/saveedit`,
      qs.stringify(params)
    );
  },
  extractSaveAdd(params) {
    return axios.post(`${base.bd}/admin/extract/saveadd`, qs.stringify(params));
  },
  extractDel(params) {
    return axios.post(`${base.bd}/admin/extract/del`, qs.stringify(params));
  },
  extractcheck(params) {
    return axios.post(
      `${base.bd}/admin/extract/savecheck`,
      qs.stringify(params)
    );
  },
  getOrderList(params) {
    return axios.post(`${base.bd}/admin/order/lists`, qs.stringify(params));
  },
  getLockMoneyList(params) {
    return axios.post(`${base.bd}/admin/order/getlockmoney`, qs.stringify(params));
  },
  orderMailSave(params) {
    return axios.post(`${base.bd}/admin/order/edit_send`, qs.stringify(params));
  },
  getOrderInfo(params) {
    return axios.post(
      `${base.bd}/admin/order/order_info`,
      qs.stringify(params)
    );
  },
  getOrderPrintInfo(params) {
    // 打印面单
    return axios.post(`${base.bd}/admin/order/prints`, qs.stringify(params));
  },
  getOrderBatchPrintInfo(params) {
    // 批量打印面单
    return axios.post(
      `${base.bd}/admin/order/batch_prints`,
      qs.stringify(params)
    );
  },
  updateOrderInfo(params) {
    return axios.post(
      `${base.bd}/admin/order/edit_order_info`,
      qs.stringify(params)
    );
  },
  getEditMail(params) {
    return axios.post(`${base.bd}/admin/order/edit_mail`, qs.stringify(params));
  },
  orderMoneyList(params) {
    return axios.post(
      `${base.bd}/admin/order/order_money_list`,
      qs.stringify(params)
    );
  },
  getReturnList(params) {
    return axios.post(
      `${base.bd}/admin/order/reback_lists`,
      qs.stringify(params)
    );
  },
  orderRebackGoods(params) {
    return axios.post(
      `${base.bd}/admin/order/reback_goods`,
      qs.stringify(params)
    );
  },

  getMoneyList(params) {
    return axios.post(`${base.bd}/admin/money/lists`, qs.stringify(params));
  },
  getRechargeList(params) {
    return axios.post(`${base.bd}/admin/recharge/lists`, qs.stringify(params));
  },
  getRechargeInfo(params) {
    return axios.post(`${base.bd}/admin/recharge/edit`, qs.stringify(params));
  },
  rechargeUpdate(params) {
    return axios.post(
      `${base.bd}/admin/recharge/saveedit`,
      qs.stringify(params)
    );
  },
  getWithdrawYeList(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/lists`,
      qs.stringify(params)
    );
  },
  //批量审核
  getWithdrawYeUpdateList(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/saveedit_lists`,
      qs.stringify(params)
    );
  },
  getWithdrawYeInfo(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/find`,
      qs.stringify(params)
    );
  },
  getWithdrawYeUpdate(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/saveedit`,
      qs.stringify(params)
    );
  },
  getWithdrawYeAllow(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/allow`,
      qs.stringify(params)
    );
  },
  getWithdrawYeReject(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/reject`,
      qs.stringify(params)
    );
  },

  getWithdrawYjList(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_yj/lists`,
      qs.stringify(params)
    );
  },
  getWithdrawYjInfo(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_yj/find`,
      qs.stringify(params)
    );
  },
  getWithdrawYjUpdate(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_yj/saveedit`,
      qs.stringify(params)
    );
  },
  getWithdrawYjAllow(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_yj/allow`,
      qs.stringify(params)
    );
  },
  getWithdrawYjReject(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_yj/reject`,
      qs.stringify(params)
    );
  },

  getWithdrawJfList(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_jf/lists`,
      qs.stringify(params)
    );
  },
  getWithdrawJfInfo(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_jf/find`,
      qs.stringify(params)
    );
  },
  getWithdrawJfUpdate(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_jf/saveedit`,
      qs.stringify(params)
    );
  },
  getWithdrawJfAllow(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_jf/allow`,
      qs.stringify(params)
    );
  },
  getWithdrawJfReject(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_jf/reject`,
      qs.stringify(params)
    );
  },

  getMsgList(params) {
    return axios.post(`${base.bd}/admin/user_msg/lists`, qs.stringify(params));
  },
  msgCheck(params) {
    return axios.post(`${base.bd}/admin/user_msg/check`, qs.stringify(params));
  },
  MsgDel(params) {
    return axios.post(`${base.bd}/admin/user_msg/del`, qs.stringify(params));
  },
  getMsgInfo(params) {
    return axios.post(`${base.bd}/admin/user_msg/edit`, qs.stringify(params));
  },
  MsgSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/user_msg/saveedit`,
      qs.stringify(params)
    );
  },

  getSupplierList(params) {
    return axios.post(`${base.bd}/admin/supplier/lists`, qs.stringify(params));
  },
  supplierCheck(params) {
    return axios.post(`${base.bd}/admin/supplier/check`, qs.stringify(params));
  },
  supplierDel(params) {
    return axios.post(`${base.bd}/admin/supplier/del`, qs.stringify(params));
  },
  getSupplierInfo(params) {
    return axios.post(`${base.bd}/admin/supplier/edit`, qs.stringify(params));
  },
  supplierSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/supplier/saveedit`,
      qs.stringify(params)
    );
  },
  checkKdn(params) {
    return axios.post(`${base.bd}/admin/order/check_kdn`, qs.stringify(params));
  },
  getLetterList(params) {
    return axios.post(
      `${base.bd}/admin/user_letter/lists`,
      qs.stringify(params)
    );
  },
  letterDel(params) {
    return axios.post(`${base.bd}/admin/user_letter/del`, qs.stringify(params));
  },
  getLetterInfo(params) {
    return axios.post(
      `${base.bd}/admin/user_letter/edit`,
      qs.stringify(params)
    );
  },
  letterSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/user_letter/saveedit`,
      qs.stringify(params)
    );
  },
  letterSaveAdd(params) {
    return axios.post(
      `${base.bd}/admin/user_letter/saveadd`,
      qs.stringify(params)
    );
  },
  getHeadUserInfo(params) {
    return axios.post(`${base.bd}/admin/admin/edit`, qs.stringify(params));
  },
  getsearch_money(params) {
    return axios.post(
      `${base.bd}/admin/money/search_money_option`,
      qs.stringify(params)
    );
  },
  getsearch_reward(params) {
    return axios.post(
      `${base.bd}/admin/money/search_reward_option`,
      qs.stringify(params)
    );
  },
  excel() {
    return axios.post(`${base.bd}/admin/money/excel_out`);
  },
  addUser(params) {
    return axios.post(`${base.bd}/admin/user/saveadd`, qs.stringify(params));
  },
  get_rank(params) {
    //会员等级列表
    return axios.post(`${base.bd}/admin/rating/lists`, qs.stringify(params));
  },
  get_singlerank(params) {
    return axios.post(`${base.bd}/admin/rating/edit`, qs.stringify(params));
  },
  add_rank(params) {
    return axios.post(`${base.bd}/admin/rating/saveadd`, qs.stringify(params));
  },
  del_rank(params) {
    return axios.post(`${base.bd}/admin/rating/del`, qs.stringify(params));
  },
  edit_rank_save(params) {
    //修改
    return axios.post(`${base.bd}/admin/rating/saveedit`, qs.stringify(params));
  },
  editAgent(params) {
    //修改
    return axios.post(`${base.bd}/admin/user/agent_edit`, qs.stringify(params));
  },

  get_sheet(params) {
    //导入 获取表信息
    return axios.post(
      `${base.bd}/admin/user_excel/excel_get_sheet`,
      qs.stringify(params)
    );
  },
  get_sel_options(params) {
    //导入  绑定下拉列表选项 （EXCEL表第一行）
    return axios.post(
      `${base.bd}/admin/user_excel/excel_row_one`,
      qs.stringify(params)
    );
  },
  get_sel_title(params) {
    //得到第二步左侧列表
    return axios.post(
      `${base.bd}/admin/user_excel/show_title`,
      qs.stringify(params)
    );
  },
  upload_auto(params) {
    //上传
    return axios.post(
      `${base.bd}/admin/user_excel/excel_in`,
      qs.stringify(params)
    );
  },
  get_timelist(params) {
    //获取期号
    return axios.post(
      `${base.bd}/admin/user_excel/stage_all_num`,
      qs.stringify(params)
    );
  },
  det_timelist(params) {
    //删除期号
    return axios.post(
      `${base.bd}/admin/user_excel/del_by_stage`,
      qs.stringify(params)
    );
  },
  get_complaint(params) {
    //获得用户反馈列表
    return axios.post(`${base.bd}/admin/feedback/lists`, qs.stringify(params));
  },
  del_complaint(params) {
    //删除用户反馈列表
    return axios.post(`${base.bd}/admin/feedback/del`, qs.stringify(params));
  },
  get_pro_option(params) {
    //获得问题列表
    return axios.post(
      `${base.bd}/admin/feedback/feedback_type`,
      qs.stringify(params)
    );
  },
  clear_all_ewm(params) {
    //清空全部二维码
    return axios.post(`${base.bd}/admin/user/empty_qr`, qs.stringify(params));
  },
  get_ordertypes(params) {
    //得到订单类型
    return axios.post(
      `${base.bd}/admin/order/order_type`,
      qs.stringify(params)
    );
  },
  close_account(params) {
    //封号
    return axios.post(`${base.bd}/admin/user_seal/close`, qs.stringify(params));
  },
  open_account(params) {
    //解封
    return axios.post(`${base.bd}/admin/user_seal/open`, qs.stringify(params));
  },
  getServiceList(params) {
    return axios.post(
      `${base.bd}/admin/service_msg/lists`,
      qs.stringify(params)
    );
  },
  sendServiceMsg(params) {
    return axios.post(
      `${base.bd}/admin/service_msg/saveadd`,
      qs.stringify(params)
    );
  },
  send_user_msg(params) {
    return axios.post(
      `${base.bd}/admin/service_msg/send_one_msg`,
      qs.stringify(params)
    );
  },
  get_withdraw_sum(params) {
    return axios.post(
      `${base.bd}/admin/withdraw_ye/count_withdraw`,
      qs.stringify(params)
    );
  },
  get_recharge_sum(params) {
    return axios.post(
      `${base.bd}/admin/recharge/count_recharge`,
      qs.stringify(params)
    );
  },
  clear_member_set(params) {
    return axios.post(`${base.bd}/admin/member/emptys`, qs.stringify(params));
  },
  getXcyEwm(params) {
    return axios.post(
      `${base.bd}/admin/user/reset_xcx_ewm`,
      qs.stringify(params)
    ); //小程序二维码
  },
  get_reserve_store_lists(params) {
    return axios.post(
      `${base.bd}/admin/reserve_store/lists`,
      qs.stringify(params)
    ); //预约门店
  },
  reserve_store_saveadd(params) {
    return axios.post(
      `${base.bd}/admin/reserve_store/saveadd`,
      qs.stringify(params)
    ); //预约门店
  },
  reserve_store_saveedit(params) {
    return axios.post(
      `${base.bd}/admin/reserve_store/saveedit`,
      qs.stringify(params)
    ); //预约门店
  },
  reserve_store_edit(params) {
    return axios.post(
      `${base.bd}/admin/reserve_store/edit`,
      qs.stringify(params)
    ); //预约门店
  },
  reserve_store_del(params) {
    return axios.post(
      `${base.bd}/admin/reserve_store/del`,
      qs.stringify(params)
    ); //预约门店
  },
  reserve_store_savetime(params) {
    return axios.post(
      `${base.bd}/admin/reserve_store/savetime`,
      qs.stringify(params)
    ); //预约门店
  },
  orderServeSave(params) {
    return axios.post(
      `${base.bd}/admin/order/edit_serve`,
      qs.stringify(params)
    );
  },
  userResetwx(params) {
    //解除微信绑定
    return axios.post(
      `${base.bd}/admin/user/unlink_wechat`,
      qs.stringify(params)
    );
  },
  userReset(params) {
    //解除微信绑定
    return axios.post(
      `${base.bd}/admin/user/unlink_wechat`,
      qs.stringify(params)
    );
  },
  saveeditcomplaint(params) {
    //删除用户反馈列表
    return axios.post(
      `${base.bd}/admin/feedback/saveedit`,
      qs.stringify(params)
    );
  },
  payment_lists(params) {
    return axios.post(`${base.bd}/admin/payment/lists`, qs.stringify(params));
  },

  live_edit(params) {
    return axios.post(`${base.bd}/admin/user/live_edit`, qs.stringify(params));
  },
  quan_edit(params) {
    return axios.post(`${base.bd}/admin/user/quan_edit`, qs.stringify(params));
  },
  payment_refund_lists(params) {
    return axios.post(
      `${base.bd}/admin/payment/refund_lists`,
      qs.stringify(params)
    );
  },
  mail_not_lists(params) {
    return axios.post(`${base.bd}/admin/mail_not/lists`, qs.stringify(params));
  },
  mail_not_saveadd(params) {
    return axios.post(
      `${base.bd}/admin/mail_not/saveadd`,
      qs.stringify(params)
    );
  },
  mail_not_del(params) {
    return axios.post(`${base.bd}/admin/mail_not/del`, qs.stringify(params));
  },
  mail_not_saveedit(params) {
    return axios.post(
      `${base.bd}/admin/mail_not/saveedit`,
      qs.stringify(params)
    );
  },
  get_face_lists(params) {
    return axios.post(`${base.bd}/admin/face/lists`, qs.stringify(params));
  },
  recharge_excel_show_title(params) {
    return axios.post(
      `${base.bd}/admin/recharge_excel/show_title`,
      qs.stringify(params)
    );
  },
  recharge_excel_excel_row_one(params) {
    return axios.post(
      `${base.bd}/admin/recharge_excel/excel_row_one`,
      qs.stringify(params)
    );
  },
  recharge_excel_excel_get_sheet(params) {
    return axios.post(
      `${base.bd}/admin/recharge_excel/excel_get_sheet`,
      qs.stringify(params)
    );
  },
  distribution_saveadd(params) {
    return axios.post(
      `${base.bd}/admin/distribution/saveadd`,
      qs.stringify(params)
    );
  },
  distribution_saveedit(params) {
    return axios.post(
      `${base.bd}/admin/distribution/saveedit`,
      qs.stringify(params)
    );
  },
  distribution_del(params) {
    return axios.post(
      `${base.bd}/admin/distribution/del`,
      qs.stringify(params)
    );
  },
  distribution_saveall(params) {
    return axios.post(
      `${base.bd}/admin/distribution/saveall`,
      qs.stringify(params)
    );
  },
  // 在线提现记录
  get_online_withdrawal(params) {
    return axios.post(
      `${base.bd}/admin/payment/redpack_log`,
      qs.stringify(params)
    );
  },
  recharge_money_lists(params) {
    return axios.post(
      `${base.bd}/admin/recharge_money/lists`,
      qs.stringify(params)
    );
  },
  recharge_money_saveadd(params) {
    return axios.post(
      `${base.bd}/admin/recharge_money/saveadd`,
      qs.stringify(params)
    );
  },
  recharge_money_saveedit(params) {
    return axios.post(
      `${base.bd}/admin/recharge_money/saveedit`,
      qs.stringify(params)
    );
  },
  recharge_money_del(params) {
    return axios.post(
      `${base.bd}/admin/recharge_money/del`,
      qs.stringify(params)
    );
  },
  user_shareholder_edit(params) {
    return axios.post(
      `${base.bd}/admin/user/shareholder_edit`,
      qs.stringify(params)
    );
  },
  complete_order_write(params) {
    return axios.post(`${base.bd}/admin/order/complete`, qs.stringify(params));
  },

  // 添加权益包
  add_equity(params) {
    return axios.post(
      `${base.bd}/admin/user/addLockMoney`,
      qs.stringify(params)
    );
  },
};
export default getUser;
